From e0a8d4c574a5983a13dff11f56e6b75dd8b130a8 Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Fri, 15 Sep 2006 18:19:46 -0400 Subject: [PATCH] [POWERPC][XEN] Sync console around program exceptions Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --- xen/arch/powerpc/exceptions.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/arch/powerpc/exceptions.c b/xen/arch/powerpc/exceptions.c index ca851fa44a..3ba5dd0725 100644 --- a/xen/arch/powerpc/exceptions.c +++ b/xen/arch/powerpc/exceptions.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -60,6 +61,8 @@ void program_exception(struct cpu_user_regs *regs, unsigned long cookie) #else /* CRASH_DEBUG */ int recover = 0; + console_start_sync(); + show_registers(regs); printk("dar 0x%016lx, dsisr 0x%08x\n", mfdar(), mfdsisr()); printk("hid4 0x%016lx\n", regs->hid4); @@ -71,5 +74,7 @@ void program_exception(struct cpu_user_regs *regs, unsigned long cookie) if (!recover) panic("%s: 0x%lx\n", __func__, cookie); + + console_end_sync(); #endif /* CRASH_DEBUG */ } -- 2.30.2